package com.tar.system.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tar.system.sys.dao.HibernateAccountDao;
import com.tar.system.sys.service.HibernateAccountService;

@Service
public class HibernateAccountServiceImpl implements HibernateAccountService {
	
	@Autowired
	private HibernateAccountDao accountDao ;

	@Override
	public void transfer() {
		this.accountDao.outMoney("aaa", 200d);
		//int i = 1/0;
		this.accountDao.inMoney("bbb", 200d);
	}

	@Override
	public void initData() {
		this.accountDao.initData();
	}

}
